#include "MyComponent.h"


MyComponent::MyComponent(void)
{
}


MyComponent::~MyComponent(void)
{
}

// setter

void MyComponent::setName(char* _name)
{
	name = _name;
	cout<<name<<endl;
}

void MyComponent::setPosition(double _x, double _y)
{
	position.x = _x;
	position.y = _y;
	cout<<position.x<<position.y<<endl;
}

void MyComponent::setSize(double _width, double _hight)
{
	size.hight = _hight;
	size.width = _width;
	cout<<size.hight<<","<<size.width<<endl;
}

void MyComponent::setListItem(list<MyItem> _listItem)
{
	listItem=_listItem;
}

void MyComponent::setRgb(char *_rgb)
{
	rgb=_rgb;
}

// getter


char* MyComponent::getName()
{
	return name;
}

Point MyComponent::getPosition()
{
	return position;
}

Size MyComponent::getSize()
{
	return size;
}